/*
 * Copyright/Licensing information.
 */

/* inclusion guard */
#ifndef __ECV_IMAGE_H__
#define __ECV_IMAGE_H__

/*
 * Glib includes
 */
#include <glib-object.h>
//#include <gio.h>

/*
 * Potentially, include other headers on which this header depends.
 */

#include <stdio.h>

/*
 * Type macros.
 */
#define ECV_TYPE_IMAGE                  (ecv_image_get_type ())
#define ECV_IMAGE(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), ECV_TYPE_IMAGE, EcvImage))
#define ECV_IS_IMAGE(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ECV_TYPE_IMAGE))
#define ECV_IMAGE_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), ECV_TYPE_IMAGE, EcvImageClass))
#define ECV_IS_IMAGE_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), ECV_TYPE_IMAGE))
#define ECV_IMAGE_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), ECV_TYPE_IMAGE, EcvImageClass))

typedef struct _EcvImage        EcvImage;
typedef struct _EcvImageClass   EcvImageClass;
typedef struct _EcvImagePrivate EcvImagePrivate;

struct _EcvImage
{
  GObject parent_instance;

  /*< public >*/

  /*< private >*/
  EcvImagePrivate *priv;
};

struct _EcvImageClass
{
  GObjectClass parent_class;

  /* class members */
  /*< public >*/

};

/* used by ECV_TYPE_IMAGE */
GType ecv_image_get_type (void);

/*
 * Method definitions.
 */

void
ecv_image_create (EcvImage *self);

int
ecv_image_set (EcvImage *self, char * data, int size);

char *
ecv_image_get_data (EcvImage *self);

int
ecv_image_get_data_size (EcvImage *self);

EcvImage * 
ecv_image_new (int width, int height, int bpp);


#endif /* __ECV_IMAGE_H__ */
